package com.guigu.youxuan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.youxuan.mapper.BackPermissionMapper;
import com.guigu.youxuan.pojo.BackPermission;
import com.guigu.youxuan.service.IBackPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Service
public class BackPermissionServiceImpl extends ServiceImpl<BackPermissionMapper, BackPermission> implements IBackPermissionService {

    @Autowired
    private BackPermissionMapper backPermissionMapper;
    @Override
    public List<BackPermission> getBackPermissionList(Long userId) {
        List<BackPermission> backPermissionList = backPermissionMapper.getBackPermissionListByUserId(userId);
        return backPermissionList;
    }
}
